package com.fmatos.amazingwallpapers.image.database.orm;

import com.j256.ormlite.field.DatabaseField;

/**
 * Represents an album
 */
public class Album {
	
	public Album() {
		// needed by ormlite
	}

	@DatabaseField (id = true)
	private String name; // primary key
	
	@DatabaseField
	private String niceName;
	
	@DatabaseField
	private String url;
	
	@DatabaseField
	private long updateTime;
	
	@DatabaseField
	private boolean favorite;
	
	@DatabaseField
	private boolean autoUpdate;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNiceName() {
		return niceName;
	}

	public void setNiceName(String niceName) {
		this.niceName = niceName;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public long getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(long updateTime) {
		this.updateTime = updateTime;
	}

	public boolean isFavorite() {
		return favorite;
	}

	public void setFavorite(boolean favorite) {
		this.favorite = favorite;
	}

	public boolean isAutoUpdate() {
		return autoUpdate;
	}

	public void setAutoUpdate(boolean autoUpdate) {
		this.autoUpdate = autoUpdate;
	}

	@Override
	public String toString() {
		return "Album [name=" + name + ", niceName=" + niceName + ", url="
				+ url + ", updateTime=" + updateTime + ", favorite=" + favorite
				+ ", autoUpdate=" + autoUpdate + "]";
	}
	
}